<%@page contentType="text/html; charset=UTF-8" session="false" %>
<%@include  file="/WEB-INF/jspf/import.jspf"%>
<div class="pageContent">
    <form method="post" action="${ROOT}/admin/level/updateSave.do?levelId=${clubLevel.levelId}" 
    	class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
        <div class="pageFormContent" layoutH="56">
           <fieldset id="webContent">
             <legend>等级基本信息</legend>
                <dl class="nowrap">
                    <dt>名称: </dt>
                    <dd><input class="textInput required" value="${clubLevel.levelName }" maxlength="20" name="levelName" readonly="true" size="50"/>
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt>积分（油值）要求: </dt>
                    <dd><input class="textInput required" value="${clubLevel.levelPetrol }" maxlength="20" readonly="true" name="levelPetrol" size="50"/>
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt>认证数要求: </dt>
                    <dd><input class="textInput required" value="${clubLevel.levelMember }" maxlength="20" readonly="true" name="levelMember" size="50"/>
                    </dd>
                </dl>
            </fieldset>
            <div class="tabs">
                <div class="tabsHeader">
                    <div class="tabsHeaderContent">
                        <ul>
                            <li><a href="javascript:void(0)"><span>升级奖品</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="tabsContent" style="height: 300px;">
                    <div>
                        <table class="list nowrap itemDetail" width="100%" addButton="新增奖品">
                            <thead>
                                <tr>
                                    <!--th width="15%" size="25">奖品ID</th-->
                                    <th name="items[#index#].prize" size="70" type="text">奖品名称</th>
                                    <th width="40%" type="del" >操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <c:forEach var="item" items="${listPrize}" varStatus="vs">
                                    <tr class="unitBox">
                                       <input type="hidden" name="items[${vs.index}].prizeId" value="${item.clubUpgradePrizeId}">
                                        <td><input type="text" name="items[${vs.index}].prize" value="${item.prize}" size="70" class="textInput required"></td>  
                                        <td>
                                        <c:if test="${vs.index>0 }">
                                            <a class="btnDel" href="${ROOT}/admin/level/delete.do?id=${item.clubUpgradePrizeId}" title="确定要删除吗？此操作不能后退！" target="ajaxTodo">删除</a>
                                        </c:if>
                                        </td>
                                    </tr>
                                </c:forEach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
